<?php

namespace Admin\Controller;

class IndexController extends CommonController {
   

	public function index()
    {

        $this->assign('server',php_uname('s'));				//服务器系统
        $this->assign('osv',php_uname('r'));				//系统版本
        $this->assign('phpmodel',php_sapi_name());			//php引擎运行模式
        $this->assign('phpv',  PHP_VERSION);				//php版本

        $this->assign('dbv',mysql_get_server_info());		//数据库版本
        $this->assign('dbmax',@get_cfg_var("mysql.max_links")==-1 ? "不限" : @get_cfg_var("mysql.max_links"));		//数据库最大连接数
        $this->assign('webv',function_exists('apache_get_version')?apache_get_version():'非Apache');


        $this->assign('servername',$_SERVER["HTTP_HOST"]);		//网站域名/IP
        $this->assign('cpu', $_SERVER['PROCESSOR_IDENTIFIER']);	//服务器CPU数量
        $this->assign('port',$_SERVER['SERVER_PORT']);			//端口号
        $this->assign('syslang',$_SERVER['HTTP_ACCEPT_LANGUAGE']);//服务器语言
        $this->assign('sysdir', $_SERVER['SystemRoot']);		//系统目录
        $this->assign('hardpath',__FILE__);						//当前脚本绝对路径
        $this->assign('uploadmax', get_cfg_var ("upload_max_filesize")?get_cfg_var ("upload_max_filesize"):"不允许上传附件");//最大上传限制
        $this->assign('exmax',get_cfg_var("max_execution_time")."秒 " );			//最大执行时间
        $this->assign('mmax',get_cfg_var ("memory_limit")?get_cfg_var("memory_limit"):"无" );			//运行时最大占用内存
        $this->assign('stime',date("Y-m-d H:i:s"));			//系统时间


        $this->display();
	}
	
}